import request from '@/utils/request'

// 查询跟进类型列表
export function listRecordtype(query) {
  console.log("1111111111111",query)
  return request({
    url: '/recordtype/recordtype/list',
    method: 'get',
    params: query
  })
}

// 查询跟进类型详细
export function getRecordtype(recordTypeId) {
  return request({
    url: '/recordtype/recordtype/' + recordTypeId,
    method: 'get'
  })
}

// 新增跟进类型
export function addRecordtype(data) {
  return request({
    url: '/recordtype/recordtype',
    method: 'post',
    data: data
  })
}

// 修改跟进类型
export function updateRecordtype(data) {
  return request({
    url: '/recordtype/recordtype',
    method: 'put',
    data: data
  })
}

// 删除跟进类型
export function delRecordtype(recordTypeId) {
  return request({
    url: '/recordtype/recordtype/' + recordTypeId,
    method: 'delete'
  })
}
